package com.ll.app.api.req;

import com.ll.domain.pk.enums.PkTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AddPkReqDTO {

    @NotNull(message = "tenantId不能为null")
    @ApiModelProperty(value = "租户Id", required = true,example = "1")
    private Long tenantId;

    @NotNull(message = "type不能为null")
    @ApiModelProperty(value = "类型", required = true,example = "弓箭积分PK")
    private PkTypeEnum type;

    @NotNull(message = "sourceId不能为null")
    @ApiModelProperty(value = "来源id", required = true,example = "6015124")
    private Long sourceId;

    @NotNull(message = "targetId不能为null")
    @ApiModelProperty(value = "目标id", required = true,example = "6014738")
    private Long targetId;

    @NotNull(message = "integral不能为null")
    @Min(value = 10, message = "Pk积分不能低于10个")
    @ApiModelProperty(value = "积分", required = true,example = "40")
    private Integer integral;
}
